<?php
namespace Common\Models;
use Common\BaseModel;
//var_dump();
class BShopCityRegion extends BaseModel
{
    public $res;
    public $expire;
    public function initialize()
    {
        parent::initialize();
        $this->setSource('b_shop_city_region');
    }

    /**
     * 获取城市
     */
    public function get_city_list($pid,$field="*"){
        $condition="pid='{$pid}'";
        $city_list = $this->find(array(
            $condition,
            'columns'=>$field
        ))->toarray();
        return $city_list;
    }

}
